(declare-fun a () String)
(declare-fun b () String)
(declare-fun c () String)
(declare-fun d () String)
(declare-fun h () String)
(declare-fun e () String)
(declare-fun f () String)
(declare-fun i () String)
(declare-fun g () String)
(assert (= b (ite (str.contains a e) f a)))
(assert (= c (str.++ "A" b)))
(assert (= (ite (str.contains d h) h g) (str.++ (str.replace i c "") c)))
(check-sat)
